<?php
/*
Copyright 2008, Nathalia


Author:
Nathalia Sautchuk Patrício          (nathalia.sautchuk@gmail.com)

*/
class AvaliacaoRecord extends TActiveRecord
{
    const TABLE='Avaliacao';
    public $AvaliacaoID;
	public $Nota;
	public $Comentario;
	public $Status;
	public $DataAvaliacao;
    public $AvaliadorID;
    public $ArtigoID;

    public static $RELATIONS=array
    (
        'artigo'     => array(self::BELONGS_TO, 'ArtigoRecord', 'ArtigoID'),
        'avaliador'    => array(self::BELONGS_TO, 'UserRecord', 'AvaliadorID'),
    );

    public static function finder($className=__CLASS__)
    {
        return parent::finder($className);
    }
}
?>
